﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using jQueryExtensions.Samples.Models;

namespace jQueryExtensions.Samples.Controllers
{
    public class OrderController : Controller
    {
        
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Create()
        {
            return View();
        } 

        [HttpPost]
        public ActionResult Create(OrderModel order)
        {
            try
            {
                return Redirect("/");
            }
            catch
            {
                return View();
            }
        }
        
        
    }
}
